// 采购销售接口
import request from "../http.js"

const api = {
	'list': '/erp/voucherDesign/list',
	'voucherDynamicPage': '/erp/voucherDesign/voucherDynamicPage',
	'pageList': '/erp/workProcedure/pageList',	// 工序列表
	'tBarcode': '/erp/workProcedureCardDetail/batchReportBarcode',	// 工序提交
	'pageVInventoryCheckMain': '/in/inventoryCheck/pageVInventoryCheckMain',	// 获取盘存盈亏
	
	'statisticStorageOnHandVo': '/inOut/recordMain/statisticStorageOnHandVo',	//现存量盘点
	
	'statisticInOutRecordDetailVo': '/inOut/recordMain/statisticInOutRecordDetailVo', //出入库流水
	
	'SummaryVo': '/inOut/recordMain/statisticInOutRecordDetailParentSummaryVo', //出入库汇总
	
	'ParentVo': '/inOut/recordMain/statisticInOutRecordSDParentSummaryVo',	//收发货汇总
	
	'getCondition': '/in/inventoryCheck/getOneByCondition',	//盘点业务
	'firstExamine': '/in/inventoryCheck/firstExamine',	//复核
	'secondExamine': '/in/inventoryCheck/secondExamine',	//监盘
	'inventorySearch': '/in/inventoryInfo/getInInventoryCheckSearchVo',	// 扫码获取盘点
	'inventorydelete': '/in/inventoryCheck/delete',	// 盘点删除
	
}

// 盘点删除 
export function inventorydelete(data) {
	return request({
		url: api.inventorydelete + '?id=' + data,
		method: 'DELETE',
		contentType: 'application/json',
		data: data
	})
}


// 复核 
export function inventorySearch(data) {
	return request({
		url: api.inventorySearch,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}



// 复核 
export function secondExamine(data) {
	return request({
		url: api.secondExamine,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}


// 复核 
export function firstExamine(data) {
	return request({
		url: api.firstExamine,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}

// 盘点业务 
export function getCondition(data) {
	return request({
		url: api.getCondition,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}

// 收发货汇总 
export function ParentVo(data) {
	return request({
		url: api.ParentVo,
		method: 'POST',
		contentType: 'application/json',
		data: data
	})
}

// 出入库汇总 
export function SummaryVo(data) {
	return request({
		url: api.SummaryVo,
		method: 'POST',
		contentType: 'application/json',
		data: data
	})
}

// 现存量盘点 
export function statisticInOutRecordDetailVo(data) {
	return request({
		url: api.statisticInOutRecordDetailVo,
		method: 'POST',
		contentType: 'application/json',
		data: data
	})
}

// 现存量盘点 
export function statisticStorageOnHandVo(data) {
	return request({
		url: api.statisticStorageOnHandVo,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}


// 获取盘存盈亏 
export function pageVInventoryCheckMain(data) {
	return request({
		url: api.pageVInventoryCheckMain,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}


// 获取列表 
export function tBarcode(data) {
	return request({
		url: api.tBarcode,
		method: 'POST',
		contentType: 'application/json',
		data: data
	})
}

// 获取列表 
export function pageList(data) {
	return request({
		url: api.pageList,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}

// 获取列表 
export function voucherDynamicPage(data) {
	return request({
		url: api.voucherDynamicPage,
		method: 'POST',
		contentType: 'application/json',
		data: data
	})
}

// 获取自定义列表 
export function list(data) {
	return request({
		url: api.list,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}

